package kau.vo;

public class AttendInfo {
	private String custId;
	private int courseId;
	
	private String day;
	private int checkInState;
	private int checkOutState;
	private String checkInTime;
	private String checkOutTime;
	private String custName;
	private String state;
	private String courseName;
	
	public AttendInfo() {}

	public AttendInfo(String custId, int courseId, String day,
			int checkInState, int checkOutState, String checkInTime,
			String checkOutTime) {
		super();
		this.custId = custId;
		this.courseId = courseId;
		this.day = day;
		this.checkInState = checkInState;
		this.checkOutState = checkOutState;
		this.checkInTime = checkInTime;
		this.checkOutTime = checkOutTime;
		
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public int getCheckInState() {
		return checkInState;
	}

	public void setCheckInState(int checkInState) {
		this.checkInState = checkInState;
	}

	public int getCheckOutState() {
		return checkOutState;
	}

	public void setCheckOutState(int checkOutState) {
		this.checkOutState = checkOutState;
	}

	public String getCheckInTime() {
		return checkInTime;
	}

	public void setCheckInTime(String checkInTime) {
		this.checkInTime = checkInTime;
	}

	public String getCheckOutTime() {
		return checkOutTime;
	}

	public void setCheckOutTime(String checkOutTime) {
		this.checkOutTime = checkOutTime;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + courseId;
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		result = prime * result + ((day == null) ? 0 : day.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttendInfo other = (AttendInfo) obj;
		if (courseId != other.courseId)
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		if (day == null) {
			if (other.day != null)
				return false;
		} else if (!day.equals(other.day))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "AttendInfo [custId=" + custId + ", courseId=" + courseId
				+ ", day=" + day + ", checkInState=" + checkInState
				+ ", checkOutState=" + checkOutState + ", checkInTime="
				+ checkInTime + ", checkOutTime=" + checkOutTime
				+ ", custName=" + custName + ", state=" + state
				+ ", courseName=" + courseName + "]";
	}
	
}
